using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CMS.Domain.Entity;
using CMS.Infrastructrue.Persistence.Configuration.Base;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace CMS.Infrastructrue.Persistence.Configuration
{
    public class AttentionAuthorConfiguration:BaseEntityConfiguration<AttentionAuthor> 
    {
        public override void Configure(EntityTypeBuilder<AttentionAuthor> builder)
        {
            base.Configure(builder);

            builder.ToTable("attention_author");

            builder.Property(x=>x.UserId).HasColumnName("user_id").HasColumnOrder(1);
            builder.Property(x=>x.AuthorId).HasColumnName("author_id").HasColumnOrder(2);


        }
    }
}